<template>
  <div style="padding: 36px">
    标签管理

    <div class="box">
      <div class="info-box">
        <img
          src="https://i2.hdslb.com/bfs/archive/298ea9917612e70527d0b91b43f77a0239545aa7.jpg@412w_232h_1c.jpg"
          alt=""
        />
        <div class="content">
          <h4>标题</h4>
          <p>123adas1da32d阿萨大大asd1a2s1da21sdasd12as1as2</p>
        </div>
      </div>

      <div></div>
    </div>

    <div class="box">
      <div class="info-box">
        <img
          src="https://i2.hdslb.com/bfs/archive/298ea9917612e70527d0b91b43f77a0239545aa7.jpg@412w_232h_1c.jpg"
          alt=""
        />
        <div class="content">
          <h4>标题</h4>
          <p>123adas1da32d阿萨大大asd1a2s1da21sdasd12as1as2</p>
        </div>
      </div>

      <div></div>
    </div>
    <div class="box">
      <div class="info-box">
        <img
          src="https://i2.hdslb.com/bfs/archive/298ea9917612e70527d0b91b43f77a0239545aa7.jpg@412w_232h_1c.jpg"
          alt=""
        />
        <div class="content">
          <h4>标题</h4>
          <p>123adas1da32d阿萨大大asd1a2s1da21sdasd12as1as2</p>
        </div>
      </div>

      <div></div>
    </div>
  </div>
</template>

<script>
export default {}
</script>

<style lang="less" scoped>
.box {
  position: relative;
  width: 206px;
  height: 116px;
  border: 1px rgb(0, 0, 0) solid;
  border-radius: 5px;

  .info-box {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;

    img {
      width: 100%;
      height: 100%;
    }

    .content {
      position: absolute;
      top: 90px;

      width: 100%;
      height: 100%;
      background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5));
      padding: 10px;

      overflow-wrap: break-word;
      box-sizing: border-box;

      transition: 0.3s;

      h4 {
        margin: 0;
      }
    }
  }
}

.box:hover .info-box .content {
  top: 0;
}
</style>
